class TasksdescController < ApplicationController
before_filter :authorize
    layout "tasksdesc"
    
      active_scaffold :tasksdesc do |config|
      #config.actions = [:list, :nested]
  config.label = "Tasks Information"
  config.action_links.add 'export_csv', :label => 'Export to Excel', :page => true
  config.action_links.add 'trunc_tbl', :label => 'Clear DataBase', :page => true
  	  config.columns = [:taskdes1,:ecomments1]	
		 config.columns[:taskdes1].label ="Tasks description"
		 config.columns[:ecomments1].label ="Editors comments"
   config.nested.add_link("Tasks's subtasks", [:subtasksdescs]) 
   		 config.columns[:subtasksdescs].search_sql = "CONCAT(subtasksdescs.descocont1,subtasksdescs.commocont1,subtasksdescs.conturl1,subtasksdescs.searterm1,subtasksdescs.uname1,subtasksdescs.upwd1)"    
		 config.search.columns << :subtasksdescs 
  end
end
